import 'package:flutter_yn_goods/pages/about_us/about_us_view.dart';
import 'package:flutter_yn_goods/pages/agent_order_list/agent_order_list_view.dart';
import 'package:flutter_yn_goods/pages/agreement/agreement_view.dart';
import 'package:flutter_yn_goods/pages/completed_orders/completed_orders_view.dart';
import 'package:flutter_yn_goods/pages/goods_info/comment_list/comment_list_view.dart';
import 'package:flutter_yn_goods/pages/goods_info/goods_info_view.dart';
import 'package:flutter_yn_goods/pages/launcher_view.dart';
import 'package:flutter_yn_goods/pages/login/login/login_view.dart';
import 'package:flutter_yn_goods/pages/login/register/register_view.dart';
import 'package:flutter_yn_goods/pages/main_view.dart';
import 'package:flutter_yn_goods/pages/mine_collect/mine_collect_view.dart';
import 'package:flutter_yn_goods/pages/mine_edit_user/mine_edit_user_view.dart';
import 'package:flutter_yn_goods/pages/mine_edit_user/modify_address/modify_address_view.dart';
import 'package:flutter_yn_goods/pages/mine_edit_user/modify_name/modify_name_view.dart';
import 'package:flutter_yn_goods/pages/mine_edit_user/modify_sex/modify_sex_view.dart';
import 'package:flutter_yn_goods/pages/mine_visit/mine_visit_view.dart';
import 'package:flutter_yn_goods/pages/order/order_add/order_add_view.dart';
import 'package:flutter_yn_goods/pages/order/order_review/order_review_view.dart';
import 'package:flutter_yn_goods/pages/search/search_view.dart';
import 'package:flutter_yn_goods/pages/settings/settings_view.dart';
import 'package:get/get.dart';

class AppRoutes {
  //启动页
  static const launcher = '/launcher';

  //登录
  static const login = '/login';

  //注册
  static const register = '/register';

  //主页
  static const main = '/';
  static const imagePreviewPage = '/imagePreviewPage';
  static const goodsInfoPage = '/goodsInfoPage';
  static const mineEditUserPage = '/mineEditUserPage';
  static const mineCollectPage = '/mineCollectPage';
  static const mineVisitPage = '/mineVisitPage';

  static const modifyName = '/modifyName';
  static const modifySex = '/modifySex';
  static const aboutUsPage = '/aboutUsPage';

  static const orderAddPage = '/orderAddPage';
  static const modifyAddressPage = '/modifyAddressPage';
  static const agreementPage = '/agreementPage';
  static const settingsPage = '/settingsPage';
  static const agentOrderListPage = '/agentOrderListPage';
  static const completedOrdersPage = '/completedOrdersPage';
  static const orderReviewPage = '/orderReviewPage';
  static const commentListPage = '/commentListPage';
  static const searchPage = '/searchPage';

  // commentListPage

  static var pages = [
    GetPage(name: launcher, page: () => LauncherPage()),
    GetPage(name: main, page: () => MainPage()),
    GetPage(name: login, page: () => LoginPage()),
    GetPage(name: register, page: () => RegisterPage()),
    GetPage(name: goodsInfoPage, page: () => GoodsInfoPage()),
    GetPage(name: mineEditUserPage, page: () => MineEditUserPage()),
    GetPage(name: modifyName, page: () => ModifyNamePage()),
    GetPage(name: modifyAddressPage, page: () => ModifyAddressPage()),

    GetPage(name: modifySex, page: () => ModifySexPage()),
    GetPage(name: aboutUsPage, page: () => AboutUsPage()),
    GetPage(name: orderAddPage, page: () => OrderAddPage()),
    GetPage(name: agreementPage, page: () => AgreementPage()),
    GetPage(name: mineCollectPage, page: () => MineCollectPage()),
    GetPage(name: mineVisitPage, page: () => MineVisitPage()),
    GetPage(name: settingsPage, page: () => SettingsPage()),
    GetPage(name: agentOrderListPage, page: () => AgentOrderListPage()),
    GetPage(name: completedOrdersPage, page: () => CompletedOrdersPage()),
    GetPage(name: orderReviewPage, page: () => OrderReviewPage()),
    GetPage(name: commentListPage, page: () => CommentListPage()),
    GetPage(name: searchPage, page: () => SearchPage()),

    // CommentListPage

    // GetPage(
    //   name: imagePreviewPage,
    //   transition: Transition.fadeIn,
    //   fullscreenDialog: true,
    //   popGesture: true,
    //   opaque: false,
    //   page: () => ImagePreviewPage(),
    // ),
    // AnswerTestPage
  ];
}
